APP = hex
OBJS = hex.o

#ARCH = arm-linux-

CC = $(ARCH)gcc

all: $(APP)
	cp -raf $(APP) ~/share/tftpdir/

$(APP): $(OBJS)
	$(CC) -Wall -o $@ $^
	
%.o: %.c
	$(CC) -Wall -c -o $@ $<

clean:
	rm -rf $(APP) *.o *.i
